package com.ruoyi.generator.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.generator.mapper.FromCrudSuperQueryMapper;
import com.ruoyi.generator.domain.FromCrudSuperQuery;
import com.ruoyi.generator.service.IFromCrudSuperQueryService;

/**
 * 单设计__模块高级搜索配置Service业务层处理
 *
 * @author ZGL
 * @date 2025-04-01
 */
@Service
public class FromCrudSuperQueryServiceImpl implements IFromCrudSuperQueryService
{
    @Autowired
    private FromCrudSuperQueryMapper fromCrudSuperQueryMapper;

    /**
     * 查询单设计__模块高级搜索配置
     *
     * @param id 单设计__模块高级搜索配置主键
     * @return 单设计__模块高级搜索配置
     */
    @Override
    public FromCrudSuperQuery selectFromCrudSuperQueryById(Long id)
    {
        return fromCrudSuperQueryMapper.selectFromCrudSuperQueryById(id);
    }

    /**
     * 查询单设计__模块高级搜索配置列表
     *
     * @param fromCrudSuperQuery 单设计__模块高级搜索配置
     * @return 单设计__模块高级搜索配置
     */
    @Override
    public List<FromCrudSuperQuery> selectFromCrudSuperQueryList(FromCrudSuperQuery fromCrudSuperQuery)
    {
        return fromCrudSuperQueryMapper.selectFromCrudSuperQueryList(fromCrudSuperQuery);
    }

    /**
     * 新增单设计__模块高级搜索配置
     *
     * @param fromCrudSuperQuery 单设计__模块高级搜索配置
     * @return 结果
     */
    @Override
    public int insertFromCrudSuperQuery(FromCrudSuperQuery fromCrudSuperQuery)
    {
        fromCrudSuperQuery.setCreateTime(DateUtils.getNowDate());
        return fromCrudSuperQueryMapper.insertFromCrudSuperQuery(fromCrudSuperQuery);
    }

    /**
     * 修改单设计__模块高级搜索配置
     *
     * @param fromCrudSuperQuery 单设计__模块高级搜索配置
     * @return 结果
     */
    @Override
    public int updateFromCrudSuperQuery(FromCrudSuperQuery fromCrudSuperQuery)
    {
        fromCrudSuperQuery.setUpdateTime(DateUtils.getNowDate());
        return fromCrudSuperQueryMapper.updateFromCrudSuperQuery(fromCrudSuperQuery);
    }

    /**
     * 批量删除单设计__模块高级搜索配置
     *
     * @param ids 需要删除的单设计__模块高级搜索配置主键
     * @return 结果
     */
    @Override
    public int deleteFromCrudSuperQueryByIds(Long[] ids)
    {
        return fromCrudSuperQueryMapper.deleteFromCrudSuperQueryByIds(ids);
    }

    /**
     * 删除单设计__模块高级搜索配置信息
     *
     * @param id 单设计__模块高级搜索配置主键
     * @return 结果
     */
    @Override
    public int deleteFromCrudSuperQueryById(Long id)
    {
        return fromCrudSuperQueryMapper.deleteFromCrudSuperQueryById(id);
    }
}
